<%-- 
    Document   : hello.jsp
    Created on : Apr 6, 2010, 6:49:53 PM
    Author     : aaron
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">
<SCRIPT language="javascript" type="text/javascript">
function setTitle(inTitle)
{
    //alert("made to set title");
    var pageTitle = parent.document.getElementById("pageTitle");
    pageTitle.innerHTML=inTitle;
}
function setTitle_DashBoard()
{
    //alert("made to set title dash");
    setTitle('DASHBOARD');
}
function setTitle_AddAcount()
{
    setTitle('ADD AN ACCOUNT');
}
function setTitle_EditAcount()
{
    setTitle('EDIT ACCOUNT');
}
function setTitle_Preferences()
{
    setTitle('PREFERENCES');
}
function setTitle_Help()
{
    setTitle('HELP');
}

</SCRIPT>
<style type="text/css">
body{
	font-size:75%;
    background-color:white;
}
</style>



<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>passPage handoff page</title>
    </head>
    <body>
        <%
            String inPage = request.getParameter("page");
            if (inPage == null)
                inPage = "";
            if (inPage.equalsIgnoreCase("dash"))
            {
                %><jsp:include page="dashboard.jsp" flush="true"/><%
            }
            else if (inPage.equalsIgnoreCase("add"))
            {
                %><jsp:include page="SimpleAddAccount1.jsp" flush="true"/><%
            }
            else if (inPage.equalsIgnoreCase("pref"))
            {
                out.print("HERE IS WHERE THE PREFERENCES PAGE WILL GO");
            }
            else if (inPage.equalsIgnoreCase("help"))
            {
                out.print("HELP!!!! OMG, I NEED SOME HELP!");
                %>
                <h6>Here is a link to add a new account. For internal users only- -</h6>
                <a href="SimpleAddAccount1.jsp">CLICK HERE</a>
                <%
            }
            else
            {
                %><jsp:include page="dashboard.jsp" flush="true"/><%
            }

        %>
    </body>
</html>